blob: a35b9de3bfde036391b0ac869bf927361d3d4c67 [file] [log] [blame]
Junio C Hamano9ae1a062006-07-10 08:12:341git-svn(1)
2==========
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506git-svn - Bidirectional operation between a single Subversion branch and git
Junio C Hamano9ae1a062006-07-10 08:12:347
8SYNOPSIS
9--------
10'git-svn' <command> [options] [arguments]
11
12DESCRIPTION
13-----------
Junio C Hamanoa8d072a2007-01-05 07:46:2514git-svn is a simple conduit for changesets between Subversion and git.
15It is not to be confused with gitlink:git-svnimport[1], which is
Junio C Hamano00cb3712007-02-23 11:13:5216read-only.
Junio C Hamano9ae1a062006-07-10 08:12:3417
Junio C Hamanoa8d072a2007-01-05 07:46:2518git-svn was originally designed for an individual developer who wants a
Junio C Hamano9ae1a062006-07-10 08:12:3419bidirectional flow of changesets between a single branch in Subversion
Junio C Hamanoa8d072a2007-01-05 07:46:2520and an arbitrary number of branches in git. Since its inception,
21git-svn has gained the ability to track multiple branches in a manner
Junio C Hamano00cb3712007-02-23 11:13:5222similar to git-svnimport.
Junio C Hamano9ae1a062006-07-10 08:12:3423
Junio C Hamanoa8d072a2007-01-05 07:46:2524git-svn is especially useful when it comes to tracking repositories
25not organized in the way Subversion developers recommend (trunk,
26branches, tags directories).
Junio C Hamano9ae1a062006-07-10 08:12:3427
28COMMANDS
29--------
Junio C Hamano6b2cee12006-08-26 08:43:3130--
31
32'init'::
Junio C Hamano00cb3712007-02-23 11:13:5233Initializes an empty git repository with additional
34metadata directories for git-svn. The Subversion URL
35may be specified as a command-line argument, or as full
36URL arguments to -T/-t/-b. Optionally, the target
37directory to operate on can be specified as a second
38argument. Normally this command initializes the current
39directory.
40
41-T<trunk_subdir>::
42--trunk=<trunk_subdir>::
43-t<tags_subdir>::
44--tags=<tags_subdir>::
45-b<branches_subdir>::
46--branches=<branches_subdir>::
47These are optional command-line options for init. Each of
48these flags can point to a relative repository path
49(--tags=project/tags') or a full url
50(--tags=https://foo.org/project/tags)
51
52--no-metadata::
53Set the 'noMetadata' option in the [svn-remote] config.
54--use-svm-props::
55Set the 'useSvmProps' option in the [svn-remote] config.
56--use-svnsync-props::
57Set the 'useSvnsyncProps' option in the [svn-remote] config.
58--rewrite-root=<URL>::
59Set the 'rewriteRoot' option in the [svn-remote] config.
60--username=<USER>::
61For transports that SVN handles authentication for (http,
62https, and plain svn), specify the username. For other
63transports (eg svn+ssh://), you must include the username in
64the URL, eg svn+ssh://foo@svn.bar.com/project
65
Junio C Hamanoa3fd83c2007-03-02 10:34:3666--prefix=<prefix>::
Junio C Hamano00cb3712007-02-23 11:13:5267This allows one to specify a prefix which is prepended
68to the names of remotes if trunk/branches/tags are
69specified. The prefix does not automatically include a
70trailing slash, so be sure you include one in the
71argument if that is what you want. This is useful if
72you wish to track multiple projects that share a common
73repository.
Junio C Hamano9ae1a062006-07-10 08:12:3474
Junio C Hamano6b2cee12006-08-26 08:43:3175'fetch'::
Junio C Hamano9ae1a062006-07-10 08:12:3476
Junio C Hamano00cb3712007-02-23 11:13:5277Fetch unfetched revisions from the Subversion remote we are
78tracking. The name of the [svn-remote "..."] section in the
79.git/config file may be specified as an optional command-line
80argument.
Junio C Hamano9ae1a062006-07-10 08:12:3481
Junio C Hamano00cb3712007-02-23 11:13:5282'clone'::
83Runs 'init' and 'fetch'. It will automatically create a
84directory based on the basename of the URL passed to it;
85or if a second argument is passed; it will create a directory
86and work within that. It accepts all arguments that the
87'init' and 'fetch' commands accept; with the exception of
88'--fetch-all'. After a repository is cloned, the 'fetch'
89command will be able to update revisions without affecting
90the working tree; and the 'rebase' command will be able
91to update the working tree with the latest changes.
Junio C Hamano9ae1a062006-07-10 08:12:3492
Junio C Hamano00cb3712007-02-23 11:13:5293'rebase'::
94This fetches revisions from the SVN parent of the current HEAD
95and rebases the current (uncommitted to SVN) work against it.
96
Junio C Hamanoa3fd83c2007-03-02 10:34:3697This works similarly to 'svn update' or 'git-pull' except that
98it preserves linear history with 'git-rebase' instead of
99'git-merge' for ease of dcommit-ing with git-svn.
Junio C Hamano00cb3712007-02-23 11:13:52100
Junio C Hamanoa3fd83c2007-03-02 10:34:36101This accepts all options that 'git-svn fetch' and 'git-rebase'
102accepts. However '--fetch-all' only fetches from the current
103[svn-remote], and not all [svn-remote] definitions.
Junio C Hamano00cb3712007-02-23 11:13:52104
Junio C Hamanoa3fd83c2007-03-02 10:34:36105Like 'git-rebase'; this requires that the working tree be clean
106and have no uncommitted changes.
Junio C Hamano103ad7f2007-03-14 11:19:26107+
108--
109-l;;
110--local;;
111Do not fetch remotely; only run 'git-rebase' against the
112last fetched commit from the upstream SVN.
113--
114+
Junio C Hamano6b2cee12006-08-26 08:43:31115
116'dcommit'::
Junio C Hamano79770b62007-01-07 07:43:58117Commit each diff from a specified head directly to the SVN
Junio C Hamano6b2cee12006-08-26 08:43:31118repository, and then rebase or reset (depending on whether or
Junio C Hamano79770b62007-01-07 07:43:58119not there is a diff between SVN and head). This will create
120a revision in SVN for each commit in git.
121It is recommended that you run git-svn fetch and rebase (not
122pull or merge) your commits against the latest changes in the
123SVN repository.
Junio C Hamano511162f2006-12-13 06:35:48124An optional command-line argument may be specified as an
125alternative to HEAD.
Junio C Hamano4bf6dca2006-12-21 02:25:57126This is advantageous over 'set-tree' (below) because it produces
Junio C Hamano6b2cee12006-08-26 08:43:31127cleaner, more linear history.
Junio C Hamanoa3fd83c2007-03-02 10:34:36128--
Junio C Hamano6b2cee12006-08-26 08:43:31129
Junio C Hamano43d01342006-10-12 04:07:32130'log'::
131This should make it easy to look up svn log messages when svn
132users refer to -r/--revision numbers.
Junio C Hamanoa3fd83c2007-03-02 10:34:36133+
134The following features from `svn log' are supported:
135+
136--
137--revision=<n>[:<n>];;
138is supported, non-numeric args are not:
139HEAD, NEXT, BASE, PREV, etc ...
140-v/--verbose;;
141it's not completely compatible with the --verbose
142output in svn log, but reasonably close.
143--limit=<n>;;
144is NOT the same as --max-count, doesn't count
145merged/excluded commits
146--incremental;;
147supported
148--
149+
150New features:
151+
152--
153--show-commit;;
154shows the git commit sha1, as well
155--oneline;;
156our version of --pretty=oneline
157--
158+
159Any other arguments are passed directly to `git log'
Junio C Hamano43d01342006-10-12 04:07:32160
Junio C Hamanoa3fd83c2007-03-02 10:34:36161--
Junio C Hamano469d60e2007-04-29 18:30:34162'find-rev'::
163When given an SVN revision number of the form 'rN', returns the
164corresponding git commit hash. When given a tree-ish, returns the
165corresponding SVN revision number.
166
Junio C Hamano4bf6dca2006-12-21 02:25:57167'set-tree'::
Junio C Hamano43d01342006-10-12 04:07:32168You should consider using 'dcommit' instead of this command.
Junio C Hamano9ae1a062006-07-10 08:12:34169Commit specified commit or tree objects to SVN. This relies on
170your imported fetch data being up-to-date. This makes
171absolutely no attempts to do patching when committing to SVN, it
172simply overwrites files with those specified in the tree or
173commit. All merging is assumed to have taken place
174independently of git-svn functions.
175
Junio C Hamano6b2cee12006-08-26 08:43:31176'show-ignore'::
Junio C Hamano9ae1a062006-07-10 08:12:34177Recursively finds and lists the svn:ignore property on
178directories. The output is suitable for appending to
179the $GIT_DIR/info/exclude file.
180
Junio C Hamano43d01342006-10-12 04:07:32181'commit-diff'::
182Commits the diff of two tree-ish arguments from the
Junio C Hamanof9771f62007-01-17 17:42:30183command-line. This command is intended for interoperability with
Junio C Hamano43d01342006-10-12 04:07:32184git-svnimport and does not rely on being inside an git-svn
185init-ed repository. This command takes three arguments, (a) the
186original tree to diff against, (b) the new tree result, (c) the
187URL of the target Subversion repository. The final argument
188(URL) may be omitted if you are working from a git-svn-aware
189repository (that has been init-ed with git-svn).
Junio C Hamano23db8852006-11-09 23:35:53190The -r<revision> option is required for this.
Junio C Hamano43d01342006-10-12 04:07:32191
Junio C Hamano6b2cee12006-08-26 08:43:31192--
193
Junio C Hamano9ae1a062006-07-10 08:12:34194OPTIONS
195-------
Junio C Hamano6b2cee12006-08-26 08:43:31196--
197
Junio C Hamano00cb3712007-02-23 11:13:52198--shared[={false|true|umask|group|all|world|everybody}]::
Junio C Hamano43d01342006-10-12 04:07:32199--template=<template_directory>::
200Only used with the 'init' command.
Junio C Hamano24351a82007-01-13 08:09:17201These are passed directly to gitlink:git-init[1].
Junio C Hamano43d01342006-10-12 04:07:32202
Junio C Hamano9ae1a062006-07-10 08:12:34203-r <ARG>::
204--revision <ARG>::
Junio C Hamano9ae1a062006-07-10 08:12:34205
Junio C Hamano00cb3712007-02-23 11:13:52206Used with the 'fetch' command.
Junio C Hamano9ae1a062006-07-10 08:12:34207
Junio C Hamano00cb3712007-02-23 11:13:52208This allows revision ranges for partial/cauterized history
209to be supported. $NUMBER, $NUMBER1:$NUMBER2 (numeric ranges),
210$NUMBER:HEAD, and BASE:$NUMBER are all supported.
Junio C Hamano6b2cee12006-08-26 08:43:31211
Junio C Hamano00cb3712007-02-23 11:13:52212This can allow you to make partial mirrors when running fetch;
213but is generally not recommended because history will be skipped
214and lost.
Junio C Hamano9ae1a062006-07-10 08:12:34215
216-::
217--stdin::
Junio C Hamano9ae1a062006-07-10 08:12:34218
Junio C Hamano4bf6dca2006-12-21 02:25:57219Only used with the 'set-tree' command.
Junio C Hamano6b2cee12006-08-26 08:43:31220
221Read a list of commits from stdin and commit them in reverse
222order. Only the leading sha1 is read from each line, so
223git-rev-list --pretty=oneline output can be used.
Junio C Hamano9ae1a062006-07-10 08:12:34224
225--rmdir::
Junio C Hamano9ae1a062006-07-10 08:12:34226
Junio C Hamano4bf6dca2006-12-21 02:25:57227Only used with the 'dcommit', 'set-tree' and 'commit-diff' commands.
Junio C Hamano9ae1a062006-07-10 08:12:34228
Junio C Hamano6b2cee12006-08-26 08:43:31229Remove directories from the SVN tree if there are no files left
230behind. SVN can version empty directories, and they are not
231removed by default if there are no files left in them. git
232cannot version empty directories. Enabling this flag will make
233the commit to SVN act like git.
234
Junio C Hamano7ad22dc2007-01-29 02:55:48235config key: svn.rmdir
Junio C Hamano9ae1a062006-07-10 08:12:34236
237-e::
238--edit::
Junio C Hamano9ae1a062006-07-10 08:12:34239
Junio C Hamano4bf6dca2006-12-21 02:25:57240Only used with the 'dcommit', 'set-tree' and 'commit-diff' commands.
Junio C Hamano9ae1a062006-07-10 08:12:34241
Junio C Hamano6b2cee12006-08-26 08:43:31242Edit the commit message before committing to SVN. This is off by
243default for objects that are commits, and forced on when committing
244tree objects.
245
Junio C Hamano7ad22dc2007-01-29 02:55:48246config key: svn.edit
Junio C Hamano9ae1a062006-07-10 08:12:34247
248-l<num>::
249--find-copies-harder::
Junio C Hamano9ae1a062006-07-10 08:12:34250
Junio C Hamano4bf6dca2006-12-21 02:25:57251Only used with the 'dcommit', 'set-tree' and 'commit-diff' commands.
Junio C Hamano9ae1a062006-07-10 08:12:34252
Junio C Hamano6b2cee12006-08-26 08:43:31253They are both passed directly to git-diff-tree see
254gitlink:git-diff-tree[1] for more information.
255
256[verse]
Junio C Hamano7ad22dc2007-01-29 02:55:48257config key: svn.l
258config key: svn.findcopiesharder
Junio C Hamano9ae1a062006-07-10 08:12:34259
260-A<filename>::
261--authors-file=<filename>::
262
Junio C Hamano6b2cee12006-08-26 08:43:31263Syntax is compatible with the files used by git-svnimport and
264git-cvsimport:
Junio C Hamano9ae1a062006-07-10 08:12:34265
266------------------------------------------------------------------------
Junio C Hamano6b2cee12006-08-26 08:43:31267loginname = Joe User <user@example.com>
Junio C Hamano9ae1a062006-07-10 08:12:34268------------------------------------------------------------------------
269
Junio C Hamano6b2cee12006-08-26 08:43:31270If this option is specified and git-svn encounters an SVN
271committer name that does not exist in the authors-file, git-svn
272will abort operation. The user will then have to add the
273appropriate entry. Re-running the previous git-svn command
274after the authors-file is modified should continue operation.
Junio C Hamano9ae1a062006-07-10 08:12:34275
Junio C Hamano7ad22dc2007-01-29 02:55:48276config key: svn.authorsfile
Junio C Hamano43d01342006-10-12 04:07:32277
278-q::
279--quiet::
Junio C Hamanodeab0362007-01-10 05:05:11280Make git-svn less verbose.
Junio C Hamano43d01342006-10-12 04:07:32281
282--repack[=<n>]::
Junio C Hamanoa3fd83c2007-03-02 10:34:36283--repack-flags=<flags>::
Junio C Hamano43d01342006-10-12 04:07:32284
Junio C Hamanoa3fd83c2007-03-02 10:34:36285These should help keep disk usage sane for large fetches
286with many revisions.
Junio C Hamano43d01342006-10-12 04:07:32287
Junio C Hamanoa3fd83c2007-03-02 10:34:36288--repack takes an optional argument for the number of revisions
289to fetch before repacking. This defaults to repacking every
2901000 commits fetched if no argument is specified.
Junio C Hamano43d01342006-10-12 04:07:32291
Junio C Hamanoa3fd83c2007-03-02 10:34:36292--repack-flags are passed directly to gitlink:git-repack[1].
293
294[verse]
Junio C Hamano7ad22dc2007-01-29 02:55:48295config key: svn.repack
296config key: svn.repackflags
Junio C Hamano6b2cee12006-08-26 08:43:31297
298-m::
299--merge::
300-s<strategy>::
301--strategy=<strategy>::
302
Junio C Hamano00cb3712007-02-23 11:13:52303These are only used with the 'dcommit' and 'rebase' commands.
Junio C Hamano6b2cee12006-08-26 08:43:31304
305Passed directly to git-rebase when using 'dcommit' if a
306'git-reset' cannot be used (see dcommit).
307
308-n::
309--dry-run::
310
311This is only used with the 'dcommit' command.
312
313Print out the series of git arguments that would show
314which diffs would be committed to SVN.
315
316--
Junio C Hamano9ae1a062006-07-10 08:12:34317
318ADVANCED OPTIONS
319----------------
Junio C Hamano6b2cee12006-08-26 08:43:31320--
321
Junio C Hamano9ae1a062006-07-10 08:12:34322-i<GIT_SVN_ID>::
323--id <GIT_SVN_ID>::
Junio C Hamano6b2cee12006-08-26 08:43:31324
Junio C Hamano00cb3712007-02-23 11:13:52325This sets GIT_SVN_ID (instead of using the environment). This
326allows the user to override the default refname to fetch from
327when tracking a single URL. The 'log' and 'dcommit' commands
328no longer require this switch as an argument.
329
330-R<remote name>::
331--svn-remote <remote name>::
332Specify the [svn-remote "<remote name>"] section to use,
333this allows SVN multiple repositories to be tracked.
334Default: "svn"
Junio C Hamano6b2cee12006-08-26 08:43:31335
Junio C Hamano43d01342006-10-12 04:07:32336--follow-parent::
337This is especially helpful when we're tracking a directory
338that has been moved around within the repository, or if we
339started tracking a branch and never tracked the trunk it was
Junio C Hamano00cb3712007-02-23 11:13:52340descended from. This feature is enabled by default, use
341--no-follow-parent to disable it.
Junio C Hamano43d01342006-10-12 04:07:32342
Junio C Hamano7ad22dc2007-01-29 02:55:48343config key: svn.followparent
Junio C Hamano43d01342006-10-12 04:07:32344
Junio C Hamano00cb3712007-02-23 11:13:52345--
346CONFIG FILE-ONLY OPTIONS
347------------------------
348--
349
350svn.noMetadata::
351svn-remote.<name>.noMetadata::
Junio C Hamano43d01342006-10-12 04:07:32352
Junio C Hamanoa3fd83c2007-03-02 10:34:36353This gets rid of the git-svn-id: lines at the end of every commit.
Junio C Hamano43d01342006-10-12 04:07:32354
Junio C Hamanoa3fd83c2007-03-02 10:34:36355If you lose your .git/svn/git-svn/.rev_db file, git-svn will not
356be able to rebuild it and you won't be able to fetch again,
357either. This is fine for one-shot imports.
358
359The 'git-svn log' command will not work on repositories using
360this, either. Using this conflicts with the 'useSvmProps'
361option for (hopefully) obvious reasons.
Junio C Hamano43d01342006-10-12 04:07:32362
Junio C Hamano00cb3712007-02-23 11:13:52363svn.useSvmProps::
364svn-remote.<name>.useSvmProps::
Junio C Hamano43d01342006-10-12 04:07:32365
Junio C Hamanoa3fd83c2007-03-02 10:34:36366This allows git-svn to re-map repository URLs and UUIDs from
367mirrors created using SVN::Mirror (or svk) for metadata.
368
369If an SVN revision has a property, "svm:headrev", it is likely
370that the revision was created by SVN::Mirror (also used by SVK).
371The property contains a repository UUID and a revision. We want
372to make it look like we are mirroring the original URL, so
373introduce a helper function that returns the original identity
374URL and UUID, and use it when generating metadata in commit
375messages.
Junio C Hamano9ae1a062006-07-10 08:12:34376
Junio C Hamano00cb3712007-02-23 11:13:52377svn.useSvnsyncProps::
378svn-remote.<name>.useSvnsyncprops::
379Similar to the useSvmProps option; this is for users
380of the svnsync(1) command distributed with SVN 1.4.x and
381later.
Junio C Hamano9ae1a062006-07-10 08:12:34382
Junio C Hamano00cb3712007-02-23 11:13:52383svn-remote.<name>.rewriteRoot::
384This allows users to create repositories from alternate
385URLs. For example, an administrator could run git-svn on the
386server locally (accessing via file://) but wish to distribute
387the repository with a public http:// or svn:// URL in the
388metadata so users of it will see the public URL.
Junio C Hamano6b2cee12006-08-26 08:43:31389
Junio C Hamano00cb3712007-02-23 11:13:52390Since the noMetadata, rewriteRoot, useSvnsyncProps and useSvmProps
391options all affect the metadata generated and used by git-svn; they
392*must* be set in the configuration file before any history is imported
393and these settings should never be changed once they are set.
Junio C Hamano9ae1a062006-07-10 08:12:34394
Junio C Hamano00cb3712007-02-23 11:13:52395Additionally, only one of these four options can be used per-svn-remote
396section because they affect the 'git-svn-id:' metadata line.
Junio C Hamano47c1e3c2006-09-25 04:45:55397
Junio C Hamano6b2cee12006-08-26 08:43:31398--
Junio C Hamano9ae1a062006-07-10 08:12:34399
Junio C Hamanoa3fd83c2007-03-02 10:34:36400BASIC EXAMPLES
401--------------
Junio C Hamano9ae1a062006-07-10 08:12:34402
Junio C Hamanoa8d072a2007-01-05 07:46:25403Tracking and contributing to a the trunk of a Subversion-managed project:
Junio C Hamano9ae1a062006-07-10 08:12:34404
405------------------------------------------------------------------------
Junio C Hamano00cb3712007-02-23 11:13:52406# Clone a repo (like git clone):
407git-svn clone http://svn.foo.org/project/trunk
408# Enter the newly cloned directory:
409cd trunk
410# You should be on master branch, double-check with git-branch
411git branch
412# Do some work and commit locally to git:
413git commit ...
414# Something is committed to SVN, rebase your local changes against the
415# latest changes in SVN:
416git-svn rebase
417# Now commit your changes (that were committed previously using git) to SVN,
418# as well as automatically updating your working HEAD:
Junio C Hamanoa3e46262006-11-29 07:59:40419git-svn dcommit
Junio C Hamano9ae1a062006-07-10 08:12:34420# Append svn:ignore settings to the default git exclude file:
421git-svn show-ignore >> .git/info/exclude
422------------------------------------------------------------------------
423
Junio C Hamanoa8d072a2007-01-05 07:46:25424Tracking and contributing to an entire Subversion-managed project
425(complete with a trunk, tags and branches):
Junio C Hamanoa8d072a2007-01-05 07:46:25426
427------------------------------------------------------------------------
Junio C Hamano00cb3712007-02-23 11:13:52428# Clone a repo (like git clone):
429git-svn clone http://svn.foo.org/project -T trunk -b branches -t tags
430# View all branches and tags you have cloned:
431git branch -r
432# Reset your master to trunk (or any other branch, replacing 'trunk'
433# with the appropriate name):
434git reset --hard remotes/trunk
435# You may only dcommit to one branch/tag/trunk at a time. The usage
Junio C Hamanoa3fd83c2007-03-02 10:34:36436# of dcommit/rebase/show-ignore should be the same as above.
Junio C Hamanoa8d072a2007-01-05 07:46:25437------------------------------------------------------------------------
438
Junio C Hamano79770b62007-01-07 07:43:58439REBASE VS. PULL/MERGE
440---------------------
Junio C Hamano6b2cee12006-08-26 08:43:31441
442Originally, git-svn recommended that the remotes/git-svn branch be
Junio C Hamano79770b62007-01-07 07:43:58443pulled or merged from. This is because the author favored
444'git-svn set-tree B' to commit a single head rather than the
445'git-svn set-tree A..B' notation to commit multiple commits.
Junio C Hamano6b2cee12006-08-26 08:43:31446
Junio C Hamano79770b62007-01-07 07:43:58447If you use 'git-svn set-tree A..B' to commit several diffs and you do
448not have the latest remotes/git-svn merged into my-branch, you should
Junio C Hamano00cb3712007-02-23 11:13:52449use 'git-svn rebase' to update your work branch instead of 'git pull' or
Junio C Hamano79770b62007-01-07 07:43:58450'git merge'. 'pull/merge' can cause non-linear history to be flattened
451when committing into SVN, which can lead to merge commits reversing
452previous commits in SVN.
Junio C Hamano6b2cee12006-08-26 08:43:31453
Junio C Hamano9ae1a062006-07-10 08:12:34454DESIGN PHILOSOPHY
455-----------------
456Merge tracking in Subversion is lacking and doing branched development
Junio C Hamanoa3e46262006-11-29 07:59:40457with Subversion is cumbersome as a result. git-svn does not do
458automated merge/branch tracking by default and leaves it entirely up to
Junio C Hamano00cb3712007-02-23 11:13:52459the user on the git side. git-svn does however follow copy
460history of the directory that it is tracking, however (much like
461how 'svn log' works).
Junio C Hamano9ae1a062006-07-10 08:12:34462
463BUGS
464----
Junio C Hamano43d01342006-10-12 04:07:32465
Junio C Hamano00cb3712007-02-23 11:13:52466We ignore all SVN properties except svn:executable. Any unhandled
467properties are logged to $GIT_DIR/svn/<refname>/unhandled.log
Junio C Hamano9ae1a062006-07-10 08:12:34468
Junio C Hamano9ae1a062006-07-10 08:12:34469Renamed and copied directories are not detected by git and hence not
470tracked when committing to SVN. I do not plan on adding support for
471this as it's quite difficult and time-consuming to get working for all
Junio C Hamano00cb3712007-02-23 11:13:52472the possible corner cases (git doesn't do it, either). Committing
473renamed and copied files are fully supported if they're similar enough
474for git to detect them.
475
476CONFIGURATION
477-------------
478
479git-svn stores [svn-remote] configuration information in the
480repository .git/config file. It is similar the core git
481[remote] sections except 'fetch' keys do not accept glob
482arguments; but they are instead handled by the 'branches'
483and 'tags' keys. Since some SVN repositories are oddly
484configured with multiple projects glob expansions such those
485listed below are allowed:
486
487------------------------------------------------------------------------
488[svn-remote "project-a"]
489url = http://server.org/svn
490branches = branches/*/project-a:refs/remotes/project-a/branches/*
491tags = tags/*/project-a:refs/remotes/project-a/tags/*
492trunk = trunk/project-a:refs/remotes/project-a/trunk
493------------------------------------------------------------------------
494
495Keep in mind that the '*' (asterisk) wildcard of the local ref
496(left of the ':') *must* be the farthest right path component;
497however the remote wildcard may be anywhere as long as it's own
498independent path componet (surrounded by '/' or EOL). This
499type of configuration is not automatically created by 'init' and
500should be manually entered with a text-editor or using
501gitlink:git-config[1]
Junio C Hamano9ae1a062006-07-10 08:12:34502
Junio C Hamano6b2cee12006-08-26 08:43:31503SEE ALSO
504--------
505gitlink:git-rebase[1]
506
Junio C Hamano9ae1a062006-07-10 08:12:34507Author
508------
509Written by Eric Wong <normalperson@yhbt.net>.
510
511Documentation
512-------------
513Written by Eric Wong <normalperson@yhbt.net>.